﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.API.Param
{
    public class QueryCommon
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        /// <summary>
        /// 往来单位名称或Code
        /// </summary>
        public string Search { get; set; }
    }
    public class QueryOrderInput
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 条数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 往来单位
        /// </summary>
        public string BtypeCode { get; set; }
        /// <summary>
        /// 职员code
        /// </summary>
        public string EtypeCode { get; set; }
        /// <summary>
        /// 部门code
        /// </summary>
        public string DtypeCode { get; set; }
        /// <summary>
        /// 仓库code
        /// </summary>
        public string KtypeCode { get; set; }
        /// <summary>
        /// 订单code
        /// </summary>
        public string BillCode { get; set; }

    }

    public class QueryOrderOutput
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public decimal BillNumberId { get; set; }
        /// <summary>
        /// 订单code
        /// </summary>
        public string Billcode { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        public string BillDate { get; set; }
        /// <summary>
        /// 往来单位ID
        /// </summary>
        public string btypeid { get; set; }
        /// <summary>
        /// 往来单位code（客户）
        /// </summary>
        public string BtypeCode { get; set; }
        /// <summary>
        ///往来单位名称
        /// </summary>
        public string BtypeName { get; set; }
        /// <summary>
        /// 职员ID
        /// </summary>
        public string etypeid { get; set; }
        /// <summary>
        /// 职员code
        /// </summary>
        public string EtypeCode { get; set; }
        /// <summary>
        /// 职员名称
        /// </summary>
        public string EtypeName { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public string DtypeId { get; set; }
        /// <summary>
        /// 部门code
        /// </summary>
        public string DtypeCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DtypeName { get; set; }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public string KtypeId { get; set; }
        /// <summary>
        /// 仓库code
        /// </summary>
        public string KtypeCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string KtypeName { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public decimal OrderID { get; set; }
        /// <summary>
        /// 商品ID
        /// </summary>
        public string ptypeid { get; set; }
        /// <summary>
        /// 商品Code
        /// </summary>
        public string PtypeCode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string PtypeName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal total { get; set; }
        /// <summary>
        /// 单位ID
        /// </summary>
        public string UnitID { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 已完成数量
        /// </summary>
        public string ReachQty { get; set; }
    }


    public class QueryOrder
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public decimal BillNumberId { get; set; }
        /// <summary>
        /// 订单code
        /// </summary>
        public string Billcode { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        public string BillDate { get; set; }
        /// <summary>
        /// 往来单位ID
        /// </summary>
       // public string btypeid { get; set; }
        /// <summary>
        /// 往来单位code（客户）
        /// </summary>
        public string BtypeCode { get; set; }
        /// <summary>
        ///往来单位名称
        /// </summary>
        public string BtypeName { get; set; }
        /// <summary>
        /// 职员ID
        /// </summary>
       // public string etypeid { get; set; }
        /// <summary>
        /// 职员code
        /// </summary>
        public string EtypeCode { get; set; }
        /// <summary>
        /// 职员名称
        /// </summary>
        public string EtypeName { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
       // public string DtypeId { get; set; }
        /// <summary>
        /// 部门code
        /// </summary>
        public string DtypeCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DtypeName { get; set; }
        /// <summary>
        /// 仓库ID
        /// </summary>
      //  public string KtypeId { get; set; }
        /// <summary>
        /// 仓库code
        /// </summary>
        public string KtypeCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string KtypeName { get; set; }

        public List<QueryOderDetail> orderDetail { get; set; }
 
    }

    public class QueryOderDetail
    {
        /// <summary>
        /// 订单ID
        /// </summary>
     //   public string OrderID { get; set; }
        /// <summary>
        /// 商品ID
        /// </summary>
     //   public string ptypeid { get; set; }
        /// <summary>
        /// 商品Code
        /// </summary>
        public string PtypeCode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string PtypeName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal total { get; set; }
        /// <summary>
        /// 单位ID
        /// </summary>
      //  public string UnitID { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 已完成数量
        /// </summary>
        public string ReachQty { get; set; }
    }



}
